package com.shuang.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.shuang.service.CommonService;

@Controller
@RequestMapping("/common")
public class CommonHandler {
	
	@Resource(name="commonService")
	private CommonService commonService;
	
		@RequestMapping("/getPhoneCode")
		@ResponseBody
		public Map<String ,Object> phoneCode(String phone){
			return commonService.getPhoneCode(phone);
		}
}
